package com.lizhi.yun.db.sfrobot.entity;


import com.lizhi.mybatis.boot.Description;
import com.lizhi.yun.db.sfrobot.common.InputType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@ToString
@Entity
@Table(name = "his_center_assess_table_item")
@Description("评估项")
public class AssessTableItem extends AbstractHisEntity {

    @Id
    @Column(length = 30)
    @Description("lid")
    public String lid;


    @Description("记录id")
    public Long id;

    /**
     * 评估记录Id
     */
    @Column
    @Description("评估记录id")
    public Long recordId;

    /**
     * 评估Id
     */
    @Column
    @Description("评估表id")
    public Long tableId;

    /**
     * 评估项目Id
     */
    @Column
    @Description("评估项id")
    public Long templateItemId;

    /**
     * 项目名称
     */
    @Column
    @Description("评估项名称")
    public String tmplItemText;

    /**
     * 输入类型
     *
     * @see InputType
     */
    @Column
    @Description("输入类型")
    public Integer inputType;

    @Column
    @Description("输入值")
    public String value;

    /**
     * 项目父节点id
     */
    @Column
    @Description("父节点评估项id")
    public Long parentTmplItemId;

    @Column
    @Description("等级")
    public Integer level;

    @Column
    @Description("路径id")
    public Integer pathId;

    @Column(length = 100)
    @Description("路径")
    public String path;

    @Column
    @Description("isLeaf")
    public Boolean isLeaf;

    @Column(length = 500)
    @Description("介绍")
    public String intro;

    @Column
    @Description("是否已核对")
    public Boolean isChecked;
    @Column
    @Description("整型数值")
    public Integer integerValue;
    @Column
    @Description("浮动类型数值")
    public Float floatValue;
    @Column
    @Description("最大浮动类型数值")
    public Float maxFloat;
    @Column
    @Description("最小浮动类型数值")
    public Float minFloat;
    @Column
    @Description("最大整型数值")
    public Integer maxInteger;
    @Column
    @Description("最小整型数值")
    public Integer minInteger;
    /**
     * 文本
     */
    @Column
    @Description("评估项文本描述内容")
    public String text;

    /**
     * 是否计算分数
     */
    @Column
    @Description("是否已计算分数")
    public Boolean isCalcScores;

    /**
     * 分数
     */
    @Column
    @Description("分数")
    public Float score;

    @Column
    @Description("图片")
    public String image;

    @Column
    @Description("排序号")
    public Integer sortIndex;
    /**
     * 轴号，与评估的项里的轴号进行对应
     */
    @Column
    @Description("轴号")
    public Integer axis;

    @Column(length = 20)
    @Description("创建时间")
    public String createTime;

    /*云管需要的数据*/
    @ApiModelProperty(value = "医院ID")
    private String hospitalId;

    @ApiModelProperty(value = "系统ID")
    private String hospitalSystemId;
}
